From: Jason Rumney Date: Wed, 31 Jan 2007 12:37:08 +0000 (+0000) Subject: (image-mode-maybe): Prevent magic-mode-alist from X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~30693 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9fce2d717b7ee8ed4326ebb99505eb84ee6535d3;p=emacs.git (image-mode-maybe): Prevent magic-mode-alist from interfering with attempt to set major mode from modified auto-mode-alist. --- diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 3e10afcbfeb..13a689b6061 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -105,7 +105,8 @@ information on these modes." elt)) auto-mode-alist)))) (if (assoc-default buffer-file-name mode-alist 'string-match) - (let ((auto-mode-alist mode-alist)) + (let ((auto-mode-alist mode-alist) + (magic-mode-alist nil)) (set-auto-mode) (image-minor-mode t)) (image-mode))))